{% extends "base.html" %}
{% from 'users/includes/macros.html' import personal_tabs %}
{% set styles = ('users',) %}
{% set scripts = ('users',) %}
{% set is_owner = profile and profile.user == request.user %}
{% from "users/includes/notification_macros.html" import notification_sumo_deprecation %}

{% block above_main %}
  {% if is_owner and not profile.is_fxa_migrated %}
    {{ notification_sumo_deprecation(STATIC_URL) }}
  {% endif %}
{% endblock %}

{% block side_top %}
  {% if not profile and user.is_authenticated() %}
    {% set profile = get_profile(user) %}
  {% endif %}
  {% if profile %}
    {% if request.user == profile.user %}
      {{ personal_tabs(request.user, active) }}
    {% else %}
      {# If we are viewing another user's profile, don't show the personal tabs #}
      <ul class="sidebar-nav">
        <li class="selected">
          <a href="{{ profile_url(profile.user) }}">
            {{ display_name(profile.user) }}
          </a>
        </li>
      </ul>
    {% endif %}
  {% endif %}
{% endblock %}
